package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 注册人员类
 *
 * @author lenovo
 *
 */
@Entity(name = "T_BIZ_REGISTERED_PERSON")
public class RegisteredPerson implements Serializable {

	private static final long serialVersionUID = 1230945382553100220L;

	/**
	 * id
	 */

	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name = "REG_PERSON_ID")
	private String reg_person_id;

	/**
	 * 联系人
	 */
	private String contact_person;

	/**
	 * 账户名
	 */
	private String login_name;

	/**
	 * 密码
	 */
	private String login_password;

	/**
	 * 固话
	 */
	private String telephone;

	/**
	 * 手机
	 */
	private String mobile_phone;

	/**
	 * 邮箱
	 */
	private String mail;

	/**
	 * 注册时间
	 */
	private Date reg_time;

	@ManyToOne
	@JoinColumn(name = "REG_COMPANY_ID")
	private RegisteredCompany registeredCompany;

	public String getContact_person() {
		return contact_person;
	}

	public void setContact_person(String contact_person) {
		this.contact_person = contact_person;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getMobile_phone() {
		return mobile_phone;
	}

	public void setMobile_phone(String mobile_phone) {
		this.mobile_phone = mobile_phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getReg_person_id() {
		return reg_person_id;
	}

	public void setReg_person_id(String reg_person_id) {
		this.reg_person_id = reg_person_id;
	}

	public Date getReg_time() {
		return reg_time;
	}

	public void setReg_time(Date reg_time) {
		this.reg_time = reg_time;
	}

	public RegisteredCompany getRegisteredCompany() {
		return registeredCompany;
	}

	public void setRegisteredCompany(RegisteredCompany registeredCompany) {
		this.registeredCompany = registeredCompany;
	}

	public String getLogin_name() {
		return login_name;
	}

	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}

	public String getLogin_password() {
		return login_password;
	}

	public void setLogin_password(String login_password) {
		this.login_password = login_password;
	}

}
